package com.hy.controller;

import com.hy.admin.pojo.vo.AdMenuVo;
import com.hy.service.SysMenuService;
import com.hy.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import lombok.extern.slf4j.Slf4j;

import io.swagger.annotations.Api;


import java.util.List;

/**
 * @author 陌寒    Lenovo
 * @date 2025/2/18下午4:02
 * @description 类描述
 */
@Api(tags = "菜单权限管理")
@RestController
@RequestMapping("/admin/menu")
@Slf4j
public class MenuController {
    @Autowired
    private SysMenuService sysMenuService;

    /**
     * 获取菜单(动态)
     * @return
     */
    @GetMapping("/getMenu")
    public Result getMenu(){
      List<AdMenuVo> list = sysMenuService.getMenu();
      return Result.success(list);
    }


}
